# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=libdsme
pkgver=0.66.8
pkgrel=2
pkgdesc="DSME dsmesock dynamic library"
arch=('loong64' 'x86_64')
url="https://github.com/sailfishos/libdsme"
license=('LGPL')
depends=('glib2')
makedepends=('check')
source=("https://github.com/sailfishos/libdsme/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha512sums=('8f5245ba0d3a5e17051007017605ba8e69521b70f86376f6106a1bc12d7fef38941491b3e8dbbad732aeb557753f9c937c3494dfe6dd445bb2b3018cc71617af')

build() {
  cd $pkgname-$pkgver
  ./verify_version
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="${pkgdir}" install_main install_devel
}
